@echo off

setlocal 

set type=%~1
if "%type%"=="" set type=funinvoke

set name=ST-LINK

REM VID_0483&PID_374B
REM set vid=0483

set pid=374B

call %~dp0find_link.bat %name% %pid% %type%

if %errorlevel%==404 (
  call %~dp0find_com.bat STLink
)